﻿using System;
namespace CSharp.Basic.Learn.EventBus.Events
{
  /// <summary>
  /// 集成事件(强类型约束)
  /// </summary>
  public class IntegrationEvent
  {
    public IntegrationEvent()
    {
      Id = Guid.NewGuid();
      CreationDate = DateTime.Now;
    }

    public IntegrationEvent(Guid id, DateTime createDate)
    {
      Id = id;
      CreationDate = createDate;
    }

    public Guid Id { get; private set; }

    public DateTime CreationDate { get; private set; }
  }
}
